#!/bin/sh

# mv ./businessServer/target/business.war  ./businessServer/target/ROOT.war

app_name="business"
war_name="${app_name}.war"
idea_path="./businessServer/target"
deploy_path="/opt/module/tomcat/webapps"

ssh leng@hadoop02 "rm -rf  ${deploy_path}/${app_name}  ${deploy_path}/${war_name} "
scp  ${idea_path}/${war_name}       leng@hadoop02:${deploy_path}


